package com.examples;

import java.util.function.Function;

public class DispatcherBean<T, R> {

    public int thread;
    public T input;
    public DispatcherBean beanBean;
    public Function<T, R> function;

    public DispatcherBean(int thread, T input, Function<T, R> function) {
        this.function = function;
        this.thread = thread;
        this.input = input;
    }

    public DispatcherBean(int thread, DispatcherBean bean, Function<T, R> function) {
        this.function = function;
        this.thread = thread;
        this.beanBean = bean;
    }
}
